class UrlMappings {

  static mappings = {
    "/" {
      view = "/index"
    }
    "/price/$brand/$model" {
      controller = "modelPrice"
      action = "index"
    }
    "/a/$id/$keywors" {
      controller = "articleView"
      action = "index"
    }

    "/$controller/$action?/$id?"{
      constraints {
        // apply constraints here
      }
    }

    "500"(view:'/error')
  }
}
